'use strict';

module.exports = app => {
  app.router.post('/picture/upload', app.controller.picture.upload);
  app.router.put('/picture/move', app.controller.picture.move);
  app.router.del('/picture/del', app.controller.picture.destory);
  app.router.get('/picture/list', app.controller.picture.index);
  app.router.get('/picture/album_list', app.controller.picture.albumIndex);
  app.router.get('/picture/search_by_text', app.controller.picture.searchByText);
  app.router.get('/picture/search_by_tag', app.controller.picture.searchByTag);
};
